<template>
  <div>
    <slot></slot>
  </div>
</template>

<script>
import {commonAjax} from '@/api/api'
export default {
  name: 'default-person',
  data () {
    return {
      familys: []
    }
  },
  mounted () {
    this.getFamilys()
  },
  methods: {
    getFamilys () {
      commonAjax('user/listFamily', {[this.$APP_PLATFORM_NAME]: sessionStorage[this.$APP_PLATFORM_NAME]}).then(res => {
        if (res.data.code == 200) {
          this.familys = res.data.data || []
        } else {
          // todo
        }
      })
    }
  }
}
</script>
